home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / DeveloperInterfaces / PIncludes / ActionAtomIntf.p next >
Encoding:
Text File  |  1994-11-15  |  1.5 KB  |  58 lines  |  [TEXT/MPS ]

  1. {
  2.     File:        ActionAtomIntf.p
  3.  
  4.     Contains:    Pascal declarations for things the Installer wants to tell 
  5.                 action atoms about.
  6.  
  7.     Written by:    Bobby Carp
  8.  
  9.     Copyright:    © 1990, 1992 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <1>      7/6/93    KBA        first checked in
  14.          <3>     11/5/91    RRK        Added Function prototype comment
  15.          <2>     11/7/90    BAC        Adding the AAPBRec that defines the parameters an action atom
  16.                                     receives.
  17.          <1>     10/8/90    BAC        first checked in
  18.  
  19.     To Do:
  20. }
  21.  
  22. UNIT ActionAtomIntf;
  23.  
  24. INTERFACE
  25.  
  26. TYPE
  27.     { A parameter passed to the action atom tells whether it is being executed before installation }
  28.     { takes place, after it has taken place, or we're being called after the user hit cancel or stop. }
  29.  
  30.     InstallationStage = (before, after, cleanUpCancel);
  31.     
  32.     { The action atom param block record contains all of the parameters that action atoms }
  33.     { receive.  The first (and only) parameter to action atoms is a ptr to this block (AAPBRecPtr) }
  34.     
  35.     AAPBRecPtr = ^AAPBRec;
  36.     AAPBRec = RECORD
  37.         targetVRefNum:        INTEGER;
  38.         blessedDirID:        LONGINT;
  39.         aaRefCon:            LONGINT;
  40.         doingInstall:        BOOLEAN; 
  41.         whichStage:            InstallationStage; 
  42.         didLiveUpdate:        BOOLEAN; 
  43.         installerTempDirID:    LONGINT;
  44.     END;
  45.     
  46.     { The function prototype for the format 0 Action Atom code is as follows  }
  47.     
  48.     { FUNCTION    MyActionAtom(myAAPBPtr : AAPBRecPtr) : Boolean;                }
  49.     
  50.  
  51.     { The function prototype for the format 1 Action Atom code is as follows  }
  52.     
  53.     { FUNCTION    MyActionAtom(myAAPBPtr : AAPBRecPtr) : LongInt;                }
  54.     
  55.  
  56.  
  57. END.
  58.